<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>游戏列表 - 智能迭代</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/common.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/about.css') }}">
    <style>
        body {
            background-image: url("{{ url_for('static', filename='images/wood.jpg') }}");
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            min-height: 100vh;
            padding-top: 80px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .game-card {
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 16px;
            margin: 16px;
            text-align: center;
            background-color: rgba(255, 255, 255, 0.8);
            cursor: pointer;
            transition: transform 0.3s;
        }
        .game-card:hover {
            transform: scale(1.05);
        }
        .game-card img {
            max-width: 200px;
            height: 150px;
            object-fit: cover;
            border-radius: 4px;
        }
        
        /* 游戏列表横向布局 */
        #game-list {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            gap: 20px;
            padding: 20px;
            overflow-x: auto;
            justify-content: flex-start;
            align-items: stretch;
        }
        
        .game-card {
            flex: 0 0 250px; /* 固定卡片宽度 */
            height: 320px; /* 固定卡片高度 */
            display: flex;
            flex-direction: column;
        }
        
        .game-card img {
            flex: 1;
            object-fit: cover;
            min-height: 0;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <header>
        <div class="nav-container">
            <div class="logo">智能迭代</div>
            <nav>
                <ul>
                    <li><a href="/">首页</a></li>
                    <li><a href="/about">关于我们</a></li>
                    <li><a href="/">登陆</a></li>
                    <li><a href="/">注册</a></li>
                </ul>
                <div class="search-container">
                    <input type="text" placeholder="搜索..." class="search-input">
                    <button class="search-btn">🔍</button>
                </div>
            </nav>
        </div>
    </header>

    <!-- 游戏展示区域 -->
    <section class="team-container">
        <h2>游戏列表</h2>
        <div id="game-list"></div>
    </section>

    <script src="{{ url_for('static', filename='js/game.js') }}"></script>
</body>
</html>